package com.ddch.liaomingtinkerhotfix.activity;

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Build;
import android.view.View;

import com.ddch.liaomingtinkerhotfix.R;
import com.ddch.liaomingtinkerhotfix.base.BaseActivity;

import androidx.core.content.ContextCompat;

public class MainActivity extends BaseActivity {

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_main;
    }

    @Override
    protected void init() {
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
            String[] params = {Manifest.permission.WRITE_EXTERNAL_STORAGE};
            if(ContextCompat.checkSelfPermission(this,params[0]) == PackageManager.PERMISSION_DENIED){
                requestPermissions(params, 200);
            }
        }
    }
    public void jump(View view){
        readyGo(SecondActivity.class);

    }
}
